package org.dragon.services;

import org.dragon.models.Permission;

import java.util.List;

/**
 * Author:     Zhao Yan
 * DateTime:   2023/5/22 9:35
 */
public interface PermissionService {

    List<Permission> selectAll();

    Permission findById(Long id);

    Permission findByCode(String code);

    List<Permission> findByPrivilegeId(Long id);

    void save(Permission permission);

    void delete(Permission permission);

    void delete(Long id);

    void clear();
}
